package com.example.demo;

import org.springframework.dao.support.DataAccessUtils;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.time.Duration;
import java.time.Instant;


public class TestInputStream {

    public static String filePath="workflow"+ File.separator+"attachment"+File.separator+"2022-12-12"+File.separator+"test.doc";

    public static void main(String[] args) throws Exception{
        Instant begin = Instant.now();
        int count = 0;
        for(int i = 0;i<400000;i++){
            count ++;
            //System.out.println("count:"+count);
        }
        System.out.println("=============");
        System.out.println("总耗时："+ Duration.between(begin,Instant.now()).toMillis());
    }
}
